package org.xb.proxy;
import org.xb.dao.CorporationDAO;
import org.xb.dao.CorporationDAOImpl;
import org.xb.dbc.DatebaseConnection;
import org.xb.vo.Corporation;

public class CorporationProxy implements CorporationDAO{
	private DatebaseConnection dbc;
	private CorporationDAO dao;
	public CorporationProxy(){
		this.dbc=new DatebaseConnection();
		this.dao=new CorporationDAOImpl(this.dbc.getConnection());
	}
	public boolean doCreate(Corporation corporation) throws Exception {
		boolean flag=false;
		try{
			flag=this.dao.doCreate(corporation);
		}catch(Exception e){
			throw e;
		}finally{
			this.dbc.close();
		}
		return flag;
	}

}
